package flc.ast;

import android.view.View;

import flc.ast.databinding.ActivityHomeBinding;
import stark.common.basic.base.BaseNoModelActivity;
import stark.common.basic.base.DefExitAppDialog;
import stark.common.basic.event.EventStatConstant;
import stark.common.basic.event.EventStatProxy;

public class HomeActivity extends BaseNoModelActivity<ActivityHomeBinding> implements View.OnClickListener {


    @Override
    protected int onCreate() {
        EventStatProxy.getInstance().statLaunch(this);
        return R.layout.activity_home;
    }

    @Override
    protected void initView() {

    }

    @Override
    protected int getPageType() {
        //如果该首页HomeActivity带Tab，则该类型为EventStatConstant.PAGE_TAB_HOME
        return EventStatConstant.PAGE_TAB_HOME;
        //如果该首页HomeActivity不带Tab，则该类型为EventStatConstant.PAGE_TAB1
        //return EventStatConstant.PAGE_TAB1;
    }

    @Override
    protected void initData() {

    }


    @Override
    public void onClick(View view) {
    }

    @Override
    public void onBackPressed() {
        DefExitAppDialog exitAppDialog = new DefExitAppDialog(this);
        exitAppDialog.show();
    }
}